java riddle